﻿/**
 * @author flower.cheng
 * @description 权限中间件中间件，管理路由切换时的权限状态
 * @param {*} context 
 */
import userAuth from '@/service/userAuth';
export default function (context) {
    const {
        route,
        store
    } = context;
    const {
        name,
        query
    } = route;
    if( route.name != 'index' && !userAuth.isLogin() ){
      // context.redirect(200);
      // $vueInstance.$router.push({
      //   path: '/'
      // })
    }
}
